#!/bin/bash
set ARQUIVO_ASM [lindex $argv 0]
#set ARQUIVO_ASM "teste.s"

spawn spim -noexception

expect -ex {(spim)} {send "read \"$ARQUIVO_ASM\"\r"}
expect -ex {(spim)} {send "dumpnative\r"}
expect -ex {(spim)} {send "quit\r"}
